import { createApp } from 'vue'
import App from './App.vue'
import {Button, DatePicker, Icon, NavBar, Tabbar, TabbarItem, TimePicker, Toast} from 'vant';
import {createRouter, createWebHistory} from "vue-router";
import routes from "./config/routes.ts";
import 'vant/es/toast/style'
import './global.css'

const router = createRouter({
    history: createWebHistory(),
    routes,
})

const app = createApp(App);
app.use(Button);
app.use(NavBar)
app.use(Icon);
app.use(Tabbar);
app.use(TabbarItem);
app.use(router);
app.use(Toast);
app.use(DatePicker)
app.use(TimePicker);
app.mount('#app')
